package com.ecarx.module_udisk.upgrade.usb.msg.base;

import com.google.gson.annotations.SerializedName;

public abstract class BaseMsg {
    @SerializedName("msgid")
    private int msgId;
    @SerializedName("seq")
    private long seq;
    @SerializedName("version")
    private String version;

    protected BaseMsg() {

    }

    protected BaseMsg(int msgId, long seq, String version) {
        this.msgId = msgId;
        this.seq = seq;
        this.version = version;
    }

    protected BaseMsg(int msgId, long seq) {
        this(msgId, seq, "1.0.0");
    }

    public int getMsgId() {
        return msgId;
    }

    public void setMsgId(int msgId) {
        this.msgId = msgId;
    }

    public long getSeq() {
        return seq;
    }

    public void setSeq(long seq) {
        this.seq = seq;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
